<%@page import="model.ShareUser"%>
<%@page import="java.util.*"%>
<%@page import="dao.UtilisateurDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<jsp:include page="/WEB-INF/headerProfilAdmin.jsp" />


<article class="module width_3_quarter">

	<header>
		<h3 class="tabs_involved">Utilisateurs</h3>
	</header>

	<div class="tab_container">
		<div class="tab_content">
			<table class="tablesorter" cellspacing="0">
				<thead>
					<tr>
						<th>Login</th>
						<th>Actions</th>
					</tr>
				</thead>
				<tbody>
					<%
						UtilisateurDAO uDAO = new UtilisateurDAO();
						session = request.getSession();
						List<ShareUser> users = uDAO.getAllUser();

						for (ShareUser su:users) {
							out.print("<tr><td>"+ su.getLogin()
									 + "</td><td><a href='deleteUser?idUser="+ su.getIdUser()+"'><img id='supprimer' src='./img/supprimer.png'/></a></td></tr>");
						}
					%>
				</tbody>
			</table>
		</div>
	</div>

</article>

</section>


</body>

</html>